package com.reliable.service.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.reliable.service.domain.ReliableInvite;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 邀请码Mapper接口
 * 
 * @author ruoyi
 * @date 2025-07-09
 */
@Mapper
public interface ReliableInviteMapper extends BaseMapper<ReliableInvite> {


    // 查询所有已过期但状态未标记为“已过期”的邀请码
    List<ReliableInvite> selectExpiredInvites();

    // 批量更新邀请码状态为“已过期”
    int batchUpdateInviteStatus(@Param("ids") List<Long> ids);



}
